package com.itany.nmms.service;

import com.itany.nmms.entity.ProductType;
import com.itany.nmms.exception.ProductTypeExistException;
import com.itany.nmms.exception.RequestParameterErrorException;

import java.util.List;

public interface ProductTypeService {

    /**
     * 添加商品类型类型
     * @param name  商品类型名称,名称不能重复
     */
    public void addType(String name) throws RequestParameterErrorException, ProductTypeExistException;

    /**
     * 查询所有商品类型信息
     * @return
     */
    public List<ProductType> findAll();

}
